{
 "cells": [
  {
   "cell_type": "markdown",
   "id": "7c75e097-87a4-4512-88eb-32e914708d8e",
   "metadata": {},
   "source": [
    "# 字符串匹配总体调研说明"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "f1ee1599-1462-402c-a0b3-b1f4c1915262",
   "metadata": {},
   "source": [
    "## 一、非向量模糊搜索"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "2cd13e49-0dba-48b1-ad61-136766fb526d",
   "metadata": {},
   "source": [
    "### 1、说明\n",
    "\n",
    "**涉及使用库**\n",
    "* 1、`fuzzywuzzy` [https://github.com/topics/fuzzywuzzy](https://github.com/topics/fuzzywuzzy) 该项目已更名并移至[https://github.com/seatgeek/thefuzz](https://github.com/seatgeek/thefuzz)\n",
    "* 2、`RapidFuzz`  [https://github.com/rapidfuzz/RapidFuzz](https://github.com/rapidfuzz/RapidFuzz)\n",
    "\n",
    "**目录结构说明**\n",
    "* 所有task_ 开头的文件都是实际项目使用样例 可作为参考 不作为教程的一部分"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "8e4fd488-8d94-4bf3-94c8-08d74fc8d61c",
   "metadata": {},
   "source": [
    "###  2、性能比对\n",
    "\n",
    "`RapidFuzz` 性能比 `fuzzywuzzy` 性能高很多"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "4938887f-1160-4618-b6cb-e9d039b55cde",
   "metadata": {},
   "source": [
    "###  3、测试代码"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "4ad06f85-b115-4be3-9150-9d0d6db333a0",
   "metadata": {},
   "outputs": [],
   "source": [
    "# fuzzywuzzy测试代码\n",
    "%run fuzz_.py\n",
    "# 可以使用 %load fuzz_.py 查看代码"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "6b490525-9c38-4981-a212-af37edd404b9",
   "metadata": {},
   "outputs": [],
   "source": [
    "# RapidFuzz测试代码\n",
    "%run rapidfuzz_.py\n",
    "# 可以使用 %load rapidfuzz_.py 查看代码"
   ]
  },
  {
   "cell_type": "markdown",
   "id": "279dc169-2788-4ee5-a05f-b30e0576dd3e",
   "metadata": {},
   "source": [
    "#### 查看基础的fuzz使用样例\n",
    "[fuzz系列的简单样例.ipynb](./fuzz系列的简单样例.ipynb)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "id": "18212902-0661-478d-adca-5887d9b50d71",
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3 (ipykernel)",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.12.4"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 5
}
